﻿
namespace Marmat.Forms.Views
{
    namespace DataGrid
    {
        public class FocusedColumnChangedEventArgs : Grid.FocusedColumnChangedEventArgs
        {
            internal FocusedColumnChangedEventArgs(BaseGrid gridControl, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs info) : base(gridControl, info)
            {
                this.info = info;
            }

            /// <summary>
            /// 返回当前表格控件。
            /// </summary>
            /// <returns></returns>
            internal new Forms.DataGrid GridControl
            {
                get
                {
                    return (Forms.DataGrid)base.GridControl;
                }
            }

            /// <summary>
            /// 获取当前焦点列。
            /// </summary>
            /// <returns></returns>
            public new Column FocusedColumn
            {
                get
                {
                    return this.GridControl.Columns[base.FocusedColumn.Name];
                }
            }

            /// <summary>
            /// 获取先前聚焦的列。
            /// </summary>
            /// <returns></returns>
            public new Column PrevFocusedColumn
            {
                get
                {
                    return this.GridControl.Columns[base.PrevFocusedColumn.Name];
                }
            }
        }
    }
}